<?php
session_start();
error_reporting(E_ALL);
include_once 'include_classes.php';


$db=new DbConnection();
$db->OpenConnection();
$p=NULL;
if(isset($_SESSION['user'])){
    $p=new Personne($_SESSION['user']);
    $p->LogIn($_SESSION['pwd'], $db);
}
else{
    $p=new Personne('0');
}
?>